package com.shsxt.vo;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.codehaus.jackson.map.module.SimpleAbstractTypeResolver;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shsxt.model.BaseQuery;

/**
 * @author lxc2
 *
 */
public class CdkeyQuery extends BaseQuery {
	private String cdkey;
	private String useable;
	private String count;
	private Integer id;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public CdkeyQuery(String cdkey, String useable, String count, Integer id, String time, String user) {
		super();
		this.cdkey = cdkey;
		this.useable = useable;
		this.count = count;
		this.id = id;
		this.time = time;
		this.user = user;
	}
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private String time;
	private String user;
	@Override
	public String toString() {
		return "CdkeyQuery [cdkey=" + cdkey + ", useable=" + useable + ", count=" + count + ", time=" + time + ", user="
				+ user + "]";
	}
	public CdkeyQuery() {
		super();
		// TODO Auto-generated constructor stub
	}
	public CdkeyQuery(String cdkey, String useable, String count, String time, String user) {
		super();
		this.cdkey = cdkey;
		this.useable = useable;
		this.count = count;
		this.time = time;
		this.user = user;
	}
	public String getCdkey() {
		return cdkey;
	}
	public void setCdkey(String cdkey) {
		this.cdkey = cdkey;
	}
	public String getUseable() {
		return useable;
	}
	public void setUseable(String useable) {
		this.useable = useable;
	}
	public String getCount() {
		return count;
	}
	public void setCount(String count) {
		this.count = count;
	}
	public String getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time);
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	
	
	
	
}
